//  this library.
enum CtEnum {
  chapter(desc: "章节练习"),
  everyday(desc: "每日一练"),
  rankError(desc: "高频错题"),
  hotQue(desc: "热门试题"),
  rankCollect(desc: "收藏排行"),
  paperRecordChapterPractice(desc: "试卷练习"),
  paperRecordPaperLibrary(desc: "试卷考试"),
  paperRecordSpecialPractice(desc: "专项练习"),
  paperRecordRandomFormPaper(desc: "随机组件"),
  paperRecordErrorCombination(desc: "错题组卷");

  final String desc;

  const CtEnum({
    required this.desc,
  });

  static CtEnum? getTypeEnum(String type) {
    var values = CtEnum.values;
    for (var value in values) {
      if (value.name == type) {
        return value;
      }
    }
    return null;
  }
}
